.app {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100vh;
}

.editors-container {
  display: flex;
  gap: 20px;
  height: 200px;
}

.x-editor {
  flex: 1;
  background-color: rgba(0, 255, 0, 0.1);
}

.y-editor {
  flex: 1;
  background-color: rgba(0, 0, 255, 0.1);
}

.json-visualizer {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f5f5f5;
  min-height: 500px;
  position: relative;
}

.mapping-display {
  height: 150px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  background-color: white;
}

.react-flow__node {
  cursor: pointer;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.react-flow__handle {
  width: 8px;
  height: 8px;
  background-color: #555;
  border-radius: 50%;
}

.react-flow__handle:hover {
  background-color: #777;
}

.react-flow__edge {
  cursor: pointer;
}

.react-flow__edge-path {
  stroke-width: 2;
  transition: stroke 0.3s ease;
}

.react-flow__edge.selected .react-flow__edge-path {
  stroke: #ff0000 !important;
  stroke-dasharray: 5 5;
}

.react-flow__edge:hover .react-flow__edge-path {
  stroke-width: 3;
}

.react-flow__edge.animated .react-flow__edge-path {
  stroke-dasharray: 5;
  animation: dashdraw 0.5s linear infinite;
}

@keyframes dashdraw {
  from {
    stroke-dashoffset: 10;
  }
}

.react-flow__edge-label {
  font-size: 12px !important;
  font-weight: 500 !important;
  background: white !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  border: 1px solid #ccc !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  pointer-events: all !important;
  color: #333 !important;
  fill: #333 !important;
  z-index: 1000 !important;
  position: relative !important;
}

.react-flow__edge-label:hover {
  background: white !important;
  border-color: #ccc !important;
}

.react-flow__edge {
  pointer-events: all !important;
}

.react-flow__edge-path {
  stroke-width: 2 !important;
}

.react-flow__edge.selected .react-flow__edge-label,
.react-flow__edge:focus .react-flow__edge-label,
.react-flow__edge:focus-within .react-flow__edge-label,
.react-flow__edge:hover .react-flow__edge-label,
.react-flow__edge.animated .react-flow__edge-label {
  background: white !important;
  border: 1px solid #ccc !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  color: #333 !important;
  fill: #333 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
} 